#pragma once

#define SIGNATURE_CLASS L"Signature"

#define SM_SETCOLOUR	(WM_USER+101)
#define SM_GETCOLOUR	(WM_USER+102)
#define SM_SETWIDTH		(WM_USER+103)
#define SM_GETWIDTH		(WM_USER+104)
#define SM_CLEAR		(WM_USER+105)
#define SM_SAVE			(WM_USER+106)

int InitSignatureControl();

#define Signature_SetColour(hwndCtl, rgb)	(SendMessage((hwndCtl), SM_SETCOLOUR, 0L, (int)(rgb)))
#define Signature_GetColour(hwndCtl)		(SendMessage((hwndCtl), SM_GETCOLOUR, 0L, 0L))
#define Signature_SetWidth(hwndCtl, width)  (SendMessage((hwndCtl), SM_SETWIDTH, 0L, (int)(width)))
#define Signature_GetWidth(hwndCtl)			(SendMessage((hwndCtl), SM_GETWIDTH, 0L, 0L))
#define Signature_Clear(hwndCtl)			(SendMessage((hwndCtl), SM_CLEAR, 0L, 0L))
#define Signature_Save(hwndCtl, lpsz)       (SendMessage((hwndCtl), SM_SAVE, 0L, (LPARAM)(LPCTSTR)(lpsz)))